[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MODIFYING THE MENU LOOK

     The interface section of the NestTTT5 unit includes a variable NTTT of
     type N_Display. The elements of the NTTT record have Toolkit defaults
     and do not need to be altered. However, the programmer can change the
     look and feel of the menu by changing any element(s) of NTTT.

     NTTT is defined as follows:

     N_DISPLAY =
     RECORD
          X           : BYTE;
          Y           : BYTE;
          LEFTSIDE    : BOOLEAN;
          ALLOWESC    : BOOLEAN;
          BOXTYPE     : BYTE;
          BOXFCOL     : BYTE;
          BOXBCOL     : BYTE;
          CAPFCOL     : BYTE;
          BACCOL      : BYTE;
          NORFCOL     : BYTE;
          LOFCOL      : BYTE;
          HIFCOL      : BYTE;
          HIBCOL      : BYTE;
          LEFTCHAR    : CHAR;
          RIGHTCHAR   : CHAR;
          HOOK: NEST_KEY_PROC; {VER 5.0 ONLY}
          DESPATCHER  : DESPATCHER_PROC; {VER 5.0 ONLY}
     END;


     X - the X coordinate of the top corner of the menu. The coordinate
     refers to the left corner if LeftSide is true or the right side if
     LeftSide is false. If TopX is set to 0, a value of 1 or 80 is used.
     Default: 0.

     Y - the Y coordinate of the top line of the menu. If TopY is set to 0,
     the menu will start on the top line of the screen, i.e. 1. Default: 0.

     LeftSide - this boolean variable indicates the position of the menu
     and the sub-menus. If LeftSide is true, the menu is drawn to the left
     of the screen and the sub-menus are placed to the right. Default:
     true.

     AllowEsc - a boolean variable to indicate whether the user may escape
     out of the top level (or main) menu by pressing the ESC key. Remember
     to have a topic that returns a refresh code of ClearAll (i.e. quit the
     menu) if this variable is set to false. Default: true.

     BoxType - this byte variable indicates which box border to use around
     the menus. The codes are the same as for the box related commands in
     the FastTTT5 unit, e.g. 0 no border, 1 single, 2 double, etc. Default:
     1.

     BoxFCol - the foreground color of the box border. Default: yellow for
     color systems, white for monochrome.

     BoxBCol - the background color of the box border. Default: blue for
     color systems, black for monochrome.

     CapFCol -  the foreground color of the first capital letter - the user
     can select a topic by pressing the first capital letter of a topic.
     Default: white for color systems, white for monochrome.

     BacCol - the main background color of the menu. Default: blue for
     color systems, black for monochrome.

     NorFCol - the foreground color of the normal menu topics. Default:
     lightgray.

     LoFCol - the foreground color of the non-selectable menu topics.
     Default: black for color systems, darkgray for monochrome.

     HiFCol - the foreground color of the selected menu topic. Default:
     white.

     HiBCol - the background color of the selected menu topic. Default: red
     for color systems, black for monochrome.

     LeftChar - the character that is used to point to the left side of the
     topic highlight bar. Default: the right arrow, chr(16).

     RightChar - the character that is used to point to the right of the
     topic highlight bar. Default: the left arrow, chr(17).

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson